package com.chuangxiang.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("biz_contract")
public class Contract {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    
    private Long taskId;
    private Long companyId;
    private Long workerId;
    private String contractNo;
    private BigDecimal amount;
    private String content;
    private LocalDateTime startDate;
    private LocalDateTime endDate;
    
    private Integer status; // 0: 待签署 1: 已签署 2: 已完成 3: 已终止
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    private Integer deleted;
}